package com.probox.common.entity.domain.order.vo;

import com.probox.common.core.utils.money.PriceFormatUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 同一父订单下的子订单合并支付
 */
@Data
@ApiModel("合并支付的订单信息")
public class OrderMergeVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "支付总额")
    private Long totalAmount;

    @ApiModelProperty(value = "支付订单号")
    private String parentOrderNo;

    @ApiModelProperty(value = "是否需要弹窗合并支付(0不需要1需要)")
    private String isDialog;

    @ApiModelProperty(value = "子订单列表")
    private List<OrderMergeDetailVo> detailVoList;


    private String getPayAmount(){
        return PriceFormatUtil.format(totalAmount);
    }
}
